package com.jjclub.service;

import com.jjclub.entity.JjclubMenu;
import com.jjclub.entity.JjclubRoleMenu;
import com.jjclub.vo.ResponseVO;

import java.util.List;

/**
 * @Classname MenuService
 * @Description TODO
 * @Date 2019/11/14 9:34
 * @Created by jq
 */
public interface MenuService {

    /**
     * description:获取菜单列表
     * @param: []
     * @author: jj
     * @date: 2019/11/14 9:38
     * @return java.util.List<com.jjclub.entity.JjclubMenu>
     **/
    public List<JjclubMenu> getAllMenus();

    /**
     * description:添加菜单
     * @param: []
     * @author: jj
     * @date: 2019/11/14 15:48
     * @return com.jjclub.vo.ResponseVO
     **/
    public ResponseVO addMenu(JjclubMenu menu);


    /*
      删除对应的菜单
     */
    public ResponseVO delMenu(String id);

    /*
      查询对应的菜单
     */
    public JjclubMenu getJjclubMenuByid(String id);

    /*
      更新对应的菜单
     */
    public ResponseVO updateMenu(JjclubMenu menu);


    public List<JjclubRoleMenu> getmenusByroleid(String roleid);

}
